package com.want.resp.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author WangZhiJian
 * @since 2021/12/4 0004
 */
@Data
public class UserDto implements Serializable {

    private Integer id;

    private String username;

    private String headUrl;

    private String email;

    private List<UserRoleDto> rolesList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registerTime;
}
